<?php

/**
 * 前台　留言　模块 Model
 * ============================================================================
 * TBlog TBlog博客系统　BY Tmac PHP MVC framework
 * $Author: zwt007 $  <zwttmac@qq.com>
 * $Id: comment.class.php 31 2011-07-11 15:25:51Z zwt007 $
 * http://www.t-mac.org；
 */
class comment extends Model
{

    private $comment_table;
    private $article_table;

    /**
     * 初始化变量　定义私有变量
     */
    public function _init()
    {
        //连接数据库
        $this->connect();
        $this->comment_table = '#@__comment';
        $this->article_table = '#@__article';
    }

    /**
     * 保存
     * @param string $menusMain
     * return Boole
     */
    public function addcomment($info, $mode = 'INSERT', $where = '')
    {
        $rs = $this->db->autoExecute($this->comment_table, $info, $mode, $where);
        return $rs;
    }


}